@color: red;

#main{
    color: @color;
    .example{
        .bordered;
    }
}

.bordered() {
    border-top: dotted 1px black;
    border-bottom: solid 2px black;
}
